﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ServiceModel;
using System.Runtime.Serialization;

namespace _013_WCFStreamServer
{
    [MessageContract]
    public class FileUploadMessage
    {
        [MessageHeader(MustUnderstand = true)]
        public string FileName;

        [MessageBodyMember(Order = 1)]
        public System.IO.Stream FileByteStream;

    }

    [ServiceContract]
    public interface IFileUploadContract
    {
        [OperationContract(Action = "UploadFile", IsOneWay = true)]

        void UploadFile(FileUploadMessage request);
    }
}
